package com.fzkj.shejimoshi.strategy3;

/**
 * @DESCRIPTION: TODO
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/13 17:00
 */
public class Test {

    public static void main(String[] args) {
        LoginStrategyFactory fa = new LoginStrategyFactory();
        fa.choiceStrategy(new QQLogin());
        fa.login("张三");

        fa.choiceStrategy(WechatLogin.class);
        fa.login("李四");
    }

}
